<template>
  <div class="al_item">
    <div class="img">
      <img :src="img" alt="" />
      <div class="mask"><van-icon name="play" /></div>
      <i class="vip_icon" v-if="isVip"></i>
    </div>
    <div class="info">
      <div class="title">{{ nickname}}</div>
      <div class="des" >{{  pTitle }}</div>
      <div class="btns">
        <span class="zb"><van-icon name="bill-o" />&nbsp;{{albumCount}}</span>
        <span class="track"><i class="font_family icon-shengyin_o"></i>&nbsp;{{tracks_counts}}</span>
        <span class="play"><van-icon name="friends-o" />&nbsp;{{ followers_counts| getCount}}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
    computed:{
        des(){

            let str = this.pTitle.split(' ')[1]
            return str
        }
    },
    props:{
        img:{
            type:String
        },
        title:{
            type:String
        },
       
        
        trackid:{
            type:Number
        },
        pTitle:{
            type:String
        },
        nickname:{
            type:String
        },
       
        url:{
            type:String
        },
        isVip:{
            type:Boolean
        },
        tracks_counts:{
            type:Number
        },
        followers_counts:{
            type:Number
        },
        albumCount:{
            type:Number
        }
    }
};
</script>

<style lang="scss" scoped>
.al_item {
  padding: 15px 0;
  
  display: flex;
  align-items: center;
  .img {
    width: 60px;
    height: 50px;
    position: relative;
    > img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }
    .mask{
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
      height: 50px;
      border-radius: 50%;
      background-color: rgba(0,0,0,.3);
      text-align: center;
      line-height: 50px;
      font-size: 22px;
      color: #fff;
    }
    .vip_icon{
        display: block;
        width: 16px;
        height: 16px;
        position:absolute;
        bottom: -2px;
        right: 7px;
        background:url(../../../assets/icon/common/vip_bg.png) no-repeat;
        background-size: 100% 100%;
    }
  }
  .info {
    width: 270px;
    
    padding-right: 10px;
    .title {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      font-size: 16px;
      color: #333;
      margin-bottom: 5px;
    }
    .des {
     color: #a3a3ac;
    font-size: 12px;
    line-height: 16px;
    }
    .btns{
        margin-top: 5px;
        font-size: 11px;
        color: #999;
        span{
            margin-right: 15px;
        }
    }
  }
}
</style>

